<?xml version="1.0"?> 

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<!--______________________________________________________________________-->

	<xsl:output method="text"/>
	
	<!--______________________________________________________________________-->

	<xsl:template match="/">

		<xsl:variable name="nomeBD">
			<xsl:value-of select="/formsData/forms/form[@id='1.1']/data/combo[@name='banco']"/>
		</xsl:variable>	
		<xsl:variable name="nomeDSN">
			<xsl:value-of select="/formsData/forms/form[@id='1.1']/data/textatt[@name='nomeDSN']"/>
		</xsl:variable>

package instantiation;
import persistence.connection.pre_weaved.*;


public class MyODBCConnection extends ODBCConnection_<xsl:value-of select="$nomeBD"/> {
	
	public String setDSN(){
		return "<xsl:value-of select="$nomeDSN"/>";
	}
}

	</xsl:template>

</xsl:stylesheet>
